<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>v-bind对于样式style的控制</title>
  <link rel="icon" href="D:\A~shcool_study\vue_gittee\bitbug_favicon.ico" type="image/x-icon">
  <style>
    .box {
      width: 200px;
      height: 200px;
      background-color: pink;
    }
  </style>
</head>
<body>
  <div id="app">
    <!-- //或者使用驼峰backgroundColor -->
    <div class="box" :style="{width:'300px',height:'600px','background-color':'green'}"></div>
  </div>
  <script src="./vue.js"></script>
  <script>
    const app = new Vue({
      el: '#app',
      data: {

      }
    })
  </script>
</body>
</html>